/**
 * Project Name:hyh-web
 * File Name:HelloController.java
 * Package Name:com.hyh.controller
 * Date:2018年8月31日下午2:01:40
 *
*/

package com.hyh.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.hyh.result.Result;

/**
 * ClassName:HelloController
 * Reason:	 TODO ADD REASON.
 * Date:     2018年8月31日 下午2:01:40
 * @author   huangyihao
 * @version  
 * @see 	 
 */
@RestController
@RequestMapping("hello")
public class HelloController {
	
	@GetMapping("hi")
	public Result<String> hello() {
		return new Result<>("Hello");
	}
	
	@GetMapping("who")
	public Result<String> who(String name) {
		return new Result<>("Hello " + name);
	}
	
	
}
